﻿@{
    ViewBag.Title = "Default";
    Layout = "~/Views/Shared/_LayoutChild.cshtml";
}
@model Agro.Models.T_User
@section head{
<style>
.qytable{border:1px #f3f3f3 solid; margin:5px auto;}
.qytable .line_w{height:25px;line-height:25px;border-bottom:1px #d4d4d4 solid;}
.qytable .line_g{background:#f7fef6;height:25px;line-height:25px;}
.qytable .bt{font-size:12px;color:#145719;font-weight:bold;text-indent:2em;}
.qytable img{border:0px;padding-right:10px;vertical-align:middle;}
.qytable .qyname{font-size:12px;color:#145719;text-align:left; text-indent:1em;border-bottom:1px #d4d4d4 dashed;height: 25px;}
.qytable .qystate{font-size:12px;text-align:left; text-indent:1em;border-bottom:1px #d4d4d4 dashed;}
</style>
<script language="javascript" type="text/javascript">
    function download(id) {
        $("#frmDownFile").attr("src", '/FileManage/File/DownLoadFile?id=' + id);
        //            window.location.href = '/FileManage/File/DownLoadFile?id=' + id;

    }
    function showNotice(id) {
        var url = '/SystemManage/Notice/NoticeDetailPage/' + id;
        top.asyncbox.open({
            title: "通知",
            url: url,
            width: $(document.body).width() * 0.8, // $(document).width(),
            height:$(document.body).height() * 0.8, // $(document).height(),
            modal: true //模态（遮罩层），一定程度上屏蔽用户对本窗口以外的操作。              
        });
    }
</script>
}
<!--头部导航,不用时可以去掉-->
<div class="ui-layout-north">
    <div id="headertitle">
        首页</div>
</div>
<!--左侧导航，不用时直接去掉-->
@*<div class="ui-layout-west">
 @Html.Raw(ViewBag.H)
</div>*@
<!--主窗体，页面都需要的div-->
<div class="ui-layout-center" style="overflow: auto;background: url(/Content/images/bj.gif) repeat;">
    <div class="detail">
         <div class='detail_head'>          
             <span class="detail_head_left"></span>
             <span class="detail_head_middle">用户信息</span> 
             <span class="detail_head_right"></span>
         </div>
         <div class="detail_body">
            <div style="font-size: 12px; font-weight: bold; padding-left: 10px;">
                当前用户:@Model.User_Name &nbsp;&nbsp;&nbsp;
            </div>
            <div>
                <table style="width: 100%;">
                    <tr>
                        <td>
                            <b>联系人:</b>@ViewBag.ORG.Organization_Contact
                        </td>
                        <td>
                            <b>联系电话:</b>@ViewBag.ORG.Organization_Phone
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="padding-top: 5px;">
                <table style="width: 100%;">
                    <tr>
                        <td colspan="3">
                            <span class="fb red"><b>所属单位:@ViewBag.ORG.Organization_Name</b></span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            共有管理部门<span class="fb red">@ViewBag.GlCount</span>家 其中:
                        </td>
                    </tr>
                    <tr>
                        <td>
                            上报完成:@ViewBag.a3 个
                        </td>
                        <td>
                            未完成上报:@ViewBag.a2 个
                        </td>
                        <td>
                            未上报:@ViewBag.a1 个
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            共有企业部门 @ViewBag.QyCount 其中:
                        </td>
                    </tr>
                    <tr>
                        <td>
                            上报完成:@ViewBag.b3 个
                        </td>
                        <td>
                            未完成上报:@ViewBag.b2 个
                        </td>
                        <td>
                            未上报:@ViewBag.b1 个
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>


    <div class="detail">
        <div class='detail_head'>
        <span class="detail_head_left"></span>
         <span class="detail_head_middle">通知</span> 
        <span class="detail_head_right"></span>
        </div>
        <div class="detail_body">
            <ul class="dotlist">
            @foreach (Agro.Models.T_Notice notice in ViewBag.NoticeList)
            {
                <li class="d"><a href="javascript:showNotice(@notice.Notice_ID)" >@notice.Notice_Title</a><span style="float:right;">@string.Format("{0:yyyy-MM-dd}", DateTime.Parse(notice.Notice_CreateDate))</span></li>
               
            }
            </ul>
        </div>
    </div>
    <div class="detail">
        <div class='detail_head'>
         
              <span class="detail_head_left"></span>
             <span class="detail_head_middle">论坛热帖</span> 
             <span class="detail_head_right"></span>
            </div>
        <div class="detail_body">

        
         <ul class="dotlist">
            @foreach (Agro.Models.bx_Posts post in ViewBag.BbsList)
            {
                <li class="d"><a href="@ViewBag.BbsUrl/?@post.CodeName/thread-@post.ThreadID-@post.PostType-@post.FloorNumber" >@post.Subject</a><span style="float:right;">@string.Format("{0:yyyy-MM-dd}", post.CreateDate)</span></li>
               
            }
            </ul>

        </div>
    </div>
    <div class="detail">
        <div class='detail_head'>
               
               <span class="detail_head_left"></span>
             <span class="detail_head_middle">文件下载</span> 
             <span class="detail_head_right"></span>
            </div>
        <div class="detail_body">
          <ul class="dotlist">
         @foreach (Agro.Models.T_File file in ViewBag.FileList)
         {
                <li class="d"><a href="javascript:download(@file.File_ID)" >@file.File_Title</a><span style="float:right;"></span></li>
               
            }
            </ul>
        </div>
    </div>
    <div class="detail">
        <div class='detail_head'>
         
            <span class="detail_head_left"></span>
             <span class="detail_head_middle">部门上报情况</span> 
             <span class="detail_head_right"></span>   
         </div>
         <div class="detail_body" style=" overflow-y:auto;overflow-x:hidden;">
         <table style="width:99%;" cellspacing="0" cellpadding="0" class="qytable">
				<!--<tr style="background:#efefef; height:30px;line-height:30px;">
					<td class="bt" style="width: 80%;text-align:left;">单位名称</td>
					<td class="bt" style="width: 20%;text-align:left;">状态</td>
				</tr>-->


         @foreach (System.Data.DataRow row in ViewBag.CXJG.Rows)
         {
             <tr class="line_w">
				<td class="qyname">@row["bmmc"].ToString()</td>
				<td class="qystate"><img src="/Content/images/@Html.Raw(row["state"].ToString() + ".png")" alt=""/>@row["statename"].ToString()</td>
			</tr>
         }
            </table>

        </div>
    </div>
    <div class="detail">
        <div class='detail_head'>
            
              <span class="detail_head_left"></span>
             <span class="detail_head_middle">企业上报情况</span> 
             <span class="detail_head_right"></span>   
            </div>
        <div class="detail_body" style=" overflow-y:auto;overflow-x:hidden;">
         <table style="width:99%;" cellspacing="0" cellpadding="0" class="qytable">
			<!--	<tr style="background:#efefef; height:30px;line-height:30px;">
					<td class="bt" style="width: 80%;text-align:left;">企业名称</td>
					<td class="bt" style="width: 20%;text-align:left;">状态</td>
				</tr>-->


         @foreach (System.Data.DataRow row in ViewBag.QYCXJG.Rows)
         {
             <tr class="line_w">
				<td class="qyname">@row["bmmc"].ToString()</td>
				<td class="qystate"><img src="/Content/images/@Html.Raw(row["state"].ToString() + ".png")" alt=""/>@row["statename"].ToString()</td>
			</tr>
         }
            </table>

        </div>
    </div>
</div>

<iframe id='frmDownFile' frameborder='0' width='0' height='0' marginheight='0' marginwidth='0'
    scrolling="auto" style="margin: 0px; margin-bottom: -2px;"></iframe>